package p11_aop之jdk和cglib代理;

/**
 * 目标类，JDK代理和cglib代理都使用
 */
public class Target implements Foo {
    @Override
    public Integer foo(Integer... nums) {
        int sum = 0;
        for (Integer num : nums) {
            sum += num;
        }
        return sum;
    }

    @Override
    public void test() {
        System.out.println("target的test方法");
    }
}
